import { post } from '../../../util/request.js'

export const loginApi = p => {
  return post('/user/login', p)
}

export const checkCodeApi = code => {
  return post('/user/checkCode', {
    code
  })
}

export const registerApi = p => {
  return post('/user/register', p)
}

export const getProfileConfig = p => {
  return post('/user/profile', p)
}

export const saveUserInfo = p => {
  return post('/user/saveUserInfo', p)
}

export const homeInfoApi = p => {
  return post('/user/homeInfo', p)
}

export const focusApi = p => {
  return post('/user/focus', p)
}

export const cancelFocusApi = p => {
  return post('/user/cancelFocus', p)
}

export const recommendAuthorApi = p => {
  return post('/user/recommendAuthor', p)
}
